package com.lichuang.dedao.curriculum.service.impl;

import com.lichuang.dedao.curriculum.entity.CurriculumType;
import com.lichuang.dedao.curriculum.mapper.CurriculumTypeMapper;
import com.lichuang.dedao.curriculum.service.ICurriculumTypeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xiaosong
 * @since 2019-07-15
 */
@Service
public class CurriculumTypeServiceImpl extends ServiceImpl<CurriculumTypeMapper, CurriculumType> implements ICurriculumTypeService {

    @Autowired
    private CurriculumTypeMapper curriculumTypeMapper;

    @Override
    public List<CurriculumType> getAllCurriculumType(Integer parentId) {
        return curriculumTypeMapper.getAllCurriculumType(parentId);
    }
}
